#
# Be sure to run `pod lib lint commonModule.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
    s.name             = 'commonModule'
    s.version          = '0.2.0'
    s.summary          = '简短描述'

    # This description is used to generate tags and improve search results.
    #   * Think: What does it do? Why did you write it? What is the focus?
    #   * Try to keep it short, snappy and to the point.
    #   * Write the description between the DESC delimiters below.
    #   * Finally, don't worry about the indent, CocoaPods strips it!

    s.description      = '详细描述'

    s.homepage         = 'http://www.qq.com'
    # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { 'Cansing' => 'Cansing@163.com' }
    s.source           = { :git => 'https://gitee.com/cansng/common-module.git', :tag => s.version.to_s }
    # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

    s.ios.deployment_target = '12.0'

    #子文件夹
    s.subspec 'Classes' do | ss |
        #source_files, public_header_files, private_header_files需要在同一级下面
        #ss.source_files = 'commonModule/Classes/**/*.{h,m}'
        #ss.private_header_files =
        #'waterPurifierModule/Classes/waterPurifierModuleBundle.h',
        #'waterPurifierModule/Classes/CTWBProgress.h'
        #ss.public_header_files = 'commonModule/Classes/ea0230VC/ea0230ViewController.h'
        #'porscheBathtubModule/Classes/VC/alarmViewController.h',
        #'porscheBathtubModule/Classes/VC/porscheBathtubSettingViewController.h'
        #ss.private_header_files = 'instructionKits/Classes/instructionKitsBundle.h'
        #ss.private_header_files =
        #'instructionKits/Classes/instructionKitsBundle.h',
        #'instructionKits/Classes/playerViewController.h'

        #不包含
        #ss.exclude_files = 'lightClothesRackModule/Classes/lightClothesRackVC/lightClothesRackViewController_bak.xib',
        #'lightClothesRackModule/Classes/lightClothesRackVC/lightClothesRackViewController_bak2.xib',
        #'lightClothesRackModule/Classes/lightClothesRackVC/lightClothesRackViewController_bak2.m'
        #ss.exclude_files = ['oneKeyRepairModule/Classes/alert/dateTimeAlertView.m', 'oneKeyRepairModule/Classes/alert/dateTimeAlertView.h']
        #ss.exclude_files = 'oneKeyRepairModule/Classes/alert/bak/*.{h,m,xib}',
        #'oneKeyRepairModule/Classes/tools/AddrPCA/Address/bak/*.{h,m,xib}'

        #子文件夹
        ss.subspec 'constants' do | sss |
            sss.source_files = 'commonModule/Classes/constants/**/*.{h,m}'
        end

        #子文件夹
        ss.subspec 'utils' do | sss |
            sss.source_files = 'commonModule/Classes/utils/**/*.{h,m}'
        end

        #子文件夹
        ss.subspec 'components' do | sss |
            
            #子文件夹
            sss.subspec 'CustomerSwitchButton' do | ssss |
                ssss.source_files = 'commonModule/Classes/components/CustomerSwitchButton/**/*.{h,m}'
            end
            
            #子文件夹
            sss.subspec 'RGSColorSlider' do | ssss |
                ssss.source_files = 'commonModule/Classes/components/RGSColorSlider/**/*.*'
            end

        end
    end

    #s.resource_bundles = {
    #    'commonModule' => ['commonModule/**/*.{xib,json,html,jpg,gif,png,xcassets,plist,bundle,geojson}']}

    #资源加到resource_bundles里面去了, 所以要在外面再移除一次
    #s.exclude_files = [ 'lightClothesRackModule/Classes/lightClothesRackVC/lightClothesRackViewController_bak.xib',
    #'lightClothesRackModule/Classes/lightClothesRackVC/lightClothesRackViewController_bak2.xib',
    #'lightClothesRackModule/Classes/lightClothesRackVC/lightClothesRackViewController_bak2.m' ]

    #依赖本地库和远程库的方法一样
    #s.dependency 'JMCommonLib'

    #阿里私有库
    #s.dependency 'IMSThingCapability', '1.8.8'
    #阿里需要的第三方库
    #s.dependency 'CocoaAsyncSocket'

    #第三方资源库
    #s.dependency 'Masonry'
    #s.dependency 'BRPickerView'
    #s.dependency 'lottie-ios', '4.2.0'
    #s.dependency 'SWTableViewCell'
    #s.dependency 'AFNetworking', '~> 3.2.1'

    #s.static_framework = true

    #s.user_target_xcconfig = {'ENABLE_BITCODE' => 'NO'}
    #s.user_target_xcconfig = {'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'}
    #s.pod_target_xcconfig = {'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'}

    #rm -rf ~/Library/Developer/Xcode/DerivedData/
    #pod deintegrate
    #pod update
end
